package com.jiazhong.spring.ioc.annotation.b;

import com.jiazhong.spring.ioc.annotation.a.A;
import com.jiazhong.spring.ioc.annotation.a.D;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test {

    public static void main(String[] args) {
        ApplicationContext beans = new AnnotationConfigApplicationContext("com.jiazhong.spring.ioc.annotation.b");

        A a = beans.getBean(A.class);
        D d = beans.getBean(D.class);
        System.out.println(a);
        System.out.println(d);
    }
}
